#include "wifi_status.hpp"
#include <WiFi.h>
#include "display.hpp" 
#include "my_tft.hpp" 

void checkWiFi() {
  if (WiFi.status() == WL_CONNECTED) {
    Serial.println("WiFi Connected");
    tft_display_text("WiFi Connected", 0, 0, ST77XX_WHITE, 1);
  } else {
    tft_display_text("WiFi Connection Failed", 0, 0, ST77XX_RED, 2);
    while (true) {
      delay(1000); 
    }
  }
}
